import 'dart:convert';

import 'package:safetymonitor/app/data/common/choice_bean.dart';
import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/security_control_entity.g.dart';
export 'package:safetymonitor/generated/json/security_control_entity.g.dart';

/// 作业活动
@JsonSerializable()
class SecurityControlEntity extends ChoiceBean {
  SecurityControlEntity();

  factory SecurityControlEntity.fromJson(Map<String, dynamic> json) => $SecurityControlEntityFromJson(json);
  late String createTime = '';
  late String updateTime = '';
  late String creator = '';
  late String updater = '';
  late bool deleted = false;
  late int id = 0;
  late String activityName = '';
  late int securityControlRiskPointId = 0;
  late int companyId = 0;
  late int responsibleDeptId = 0;
  late int responsibleUserId = 0;
  late int recognizeDeptId = 0;
  late int recognizeUserId = 0;
  late int longitude = 0;
  late int latitude = 0;
  late int height = 0;

  Map<String, dynamic> toJson() => $SecurityControlEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }

  @override
  String getId() {
    return id.toString();
  }

  @override
  String getShowName() {
    return activityName;
  }
}
